package com.lintf.distributed.transaction.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lintf.distributed.transaction.DeductInventoryEvent;
import com.lintf.distributed.transaction.order.entity.Order;

import java.math.BigDecimal;

/**
 * @author lin tingfeng
 * @ system Mac
 * @ data 2025/6/12 17:32
 * @ package_name com.lintf.distributed.transaction.order.service
 * @ project_name distributed-transaction-demo
 * @ desc
 */
public interface OrderService extends IService<Order> {

    String createOrder(Long userId, Long productId, Integer quantity, BigDecimal amount);

    void sendDeductInventoryEvent(DeductInventoryEvent event);

}
